package com.gaxy.subject.infra.basic.es;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.ArrayList;
import java.util.List;

/**
 * ES集群配置类
 *
 * @author Gaxy
 * @create 2024/06/27/下午 03:50
 */
@Component
@ConfigurationProperties(prefix = "es.cluster")
public class ESConfigProperties {

    private List<ESClusterConfig> esConfigs = new ArrayList<>();

    public List<ESClusterConfig> getEsConfigs() {
        return esConfigs;
    }

    public void setEsConfigs(List<ESClusterConfig> esConfigs) {
        this.esConfigs = esConfigs;
    }
}
